
//  Copyright (C) 2007 Richard Uhler

//?d:Try out a function expression with identifier
//?e:5040

// This is a recursive factorial function.
foo = function fact(x)
{
    if (x <= 1)
    {
        return 1;
    }
    return x * fact(x-1);
};

print(foo(7));

